import java.util.Scanner;


public class Booking {

	public Booking()
	{
		
	}
	
	public void book()
	{
		CreateDataTest createDataTest = new CreateDataTest();
		ConstantList constant = new ConstantList();
		Scanner sc = new Scanner(System.in);
		System.out.println("Please insert your name: ");
		String name = sc.next();
		System.out.println("Please your email: ");
		String email = sc.next();
		System.out.println("Please insert your nobile number: ");
		String mobileNumber = sc.next();
		GoersItem goer = new GoersItem();
		goer.setGoerEmail(email);
		goer.setGoerMobile(mobileNumber);
		goer.setGoerName(name);
		for (int i=0; i<constant.getNumberOfGoers();i++)
		{
			if (MovieApp.goerList[i]==null)
				{
					MovieApp.goerList[i]=goer;
					break;
				}
		}
		
		
	}
}
